package StudyCode.summary.mycollection;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Enumeration;
import java.util.Vector;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class CreateArrayListFromEnumeration {
	public static void main(String[] args) {
		Vector v = new Vector();
		v.add("A");
		v.add("B");
		v.add("D");
		v.add("E");
		v.add("F");

		System.out.println("Vector 元素 : " + v);
		Enumeration e = v.elements();
		ArrayList aList = Collections.list(e);
		System.out.println("Arraylist 元素 : " + aList);
	}

}
